package com.qfedu.mbg.model;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

public class CutterExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public CutterExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andCutterIdIsNull() {
            addCriterion("cutter_id is null");
            return (Criteria) this;
        }

        public Criteria andCutterIdIsNotNull() {
            addCriterion("cutter_id is not null");
            return (Criteria) this;
        }

        public Criteria andCutterIdEqualTo(Integer value) {
            addCriterion("cutter_id =", value, "cutterId");
            return (Criteria) this;
        }

        public Criteria andCutterIdNotEqualTo(Integer value) {
            addCriterion("cutter_id <>", value, "cutterId");
            return (Criteria) this;
        }

        public Criteria andCutterIdGreaterThan(Integer value) {
            addCriterion("cutter_id >", value, "cutterId");
            return (Criteria) this;
        }

        public Criteria andCutterIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("cutter_id >=", value, "cutterId");
            return (Criteria) this;
        }

        public Criteria andCutterIdLessThan(Integer value) {
            addCriterion("cutter_id <", value, "cutterId");
            return (Criteria) this;
        }

        public Criteria andCutterIdLessThanOrEqualTo(Integer value) {
            addCriterion("cutter_id <=", value, "cutterId");
            return (Criteria) this;
        }

        public Criteria andCutterIdIn(List<Integer> values) {
            addCriterion("cutter_id in", values, "cutterId");
            return (Criteria) this;
        }

        public Criteria andCutterIdNotIn(List<Integer> values) {
            addCriterion("cutter_id not in", values, "cutterId");
            return (Criteria) this;
        }

        public Criteria andCutterIdBetween(Integer value1, Integer value2) {
            addCriterion("cutter_id between", value1, value2, "cutterId");
            return (Criteria) this;
        }

        public Criteria andCutterIdNotBetween(Integer value1, Integer value2) {
            addCriterion("cutter_id not between", value1, value2, "cutterId");
            return (Criteria) this;
        }

        public Criteria andCutterNameIsNull() {
            addCriterion("cutter_name is null");
            return (Criteria) this;
        }

        public Criteria andCutterNameIsNotNull() {
            addCriterion("cutter_name is not null");
            return (Criteria) this;
        }

        public Criteria andCutterNameEqualTo(String value) {
            addCriterion("cutter_name =", value, "cutterName");
            return (Criteria) this;
        }

        public Criteria andCutterNameNotEqualTo(String value) {
            addCriterion("cutter_name <>", value, "cutterName");
            return (Criteria) this;
        }

        public Criteria andCutterNameGreaterThan(String value) {
            addCriterion("cutter_name >", value, "cutterName");
            return (Criteria) this;
        }

        public Criteria andCutterNameGreaterThanOrEqualTo(String value) {
            addCriterion("cutter_name >=", value, "cutterName");
            return (Criteria) this;
        }

        public Criteria andCutterNameLessThan(String value) {
            addCriterion("cutter_name <", value, "cutterName");
            return (Criteria) this;
        }

        public Criteria andCutterNameLessThanOrEqualTo(String value) {
            addCriterion("cutter_name <=", value, "cutterName");
            return (Criteria) this;
        }

        public Criteria andCutterNameLike(String value) {
            addCriterion("cutter_name like", value, "cutterName");
            return (Criteria) this;
        }

        public Criteria andCutterNameNotLike(String value) {
            addCriterion("cutter_name not like", value, "cutterName");
            return (Criteria) this;
        }

        public Criteria andCutterNameIn(List<String> values) {
            addCriterion("cutter_name in", values, "cutterName");
            return (Criteria) this;
        }

        public Criteria andCutterNameNotIn(List<String> values) {
            addCriterion("cutter_name not in", values, "cutterName");
            return (Criteria) this;
        }

        public Criteria andCutterNameBetween(String value1, String value2) {
            addCriterion("cutter_name between", value1, value2, "cutterName");
            return (Criteria) this;
        }

        public Criteria andCutterNameNotBetween(String value1, String value2) {
            addCriterion("cutter_name not between", value1, value2, "cutterName");
            return (Criteria) this;
        }

        public Criteria andCutterTypeIsNull() {
            addCriterion("cutter_type is null");
            return (Criteria) this;
        }

        public Criteria andCutterTypeIsNotNull() {
            addCriterion("cutter_type is not null");
            return (Criteria) this;
        }

        public Criteria andCutterTypeEqualTo(String value) {
            addCriterion("cutter_type =", value, "cutterType");
            return (Criteria) this;
        }

        public Criteria andCutterTypeNotEqualTo(String value) {
            addCriterion("cutter_type <>", value, "cutterType");
            return (Criteria) this;
        }

        public Criteria andCutterTypeGreaterThan(String value) {
            addCriterion("cutter_type >", value, "cutterType");
            return (Criteria) this;
        }

        public Criteria andCutterTypeGreaterThanOrEqualTo(String value) {
            addCriterion("cutter_type >=", value, "cutterType");
            return (Criteria) this;
        }

        public Criteria andCutterTypeLessThan(String value) {
            addCriterion("cutter_type <", value, "cutterType");
            return (Criteria) this;
        }

        public Criteria andCutterTypeLessThanOrEqualTo(String value) {
            addCriterion("cutter_type <=", value, "cutterType");
            return (Criteria) this;
        }

        public Criteria andCutterTypeLike(String value) {
            addCriterion("cutter_type like", value, "cutterType");
            return (Criteria) this;
        }

        public Criteria andCutterTypeNotLike(String value) {
            addCriterion("cutter_type not like", value, "cutterType");
            return (Criteria) this;
        }

        public Criteria andCutterTypeIn(List<String> values) {
            addCriterion("cutter_type in", values, "cutterType");
            return (Criteria) this;
        }

        public Criteria andCutterTypeNotIn(List<String> values) {
            addCriterion("cutter_type not in", values, "cutterType");
            return (Criteria) this;
        }

        public Criteria andCutterTypeBetween(String value1, String value2) {
            addCriterion("cutter_type between", value1, value2, "cutterType");
            return (Criteria) this;
        }

        public Criteria andCutterTypeNotBetween(String value1, String value2) {
            addCriterion("cutter_type not between", value1, value2, "cutterType");
            return (Criteria) this;
        }

        public Criteria andModelNumberIsNull() {
            addCriterion("model_number is null");
            return (Criteria) this;
        }

        public Criteria andModelNumberIsNotNull() {
            addCriterion("model_number is not null");
            return (Criteria) this;
        }

        public Criteria andModelNumberEqualTo(String value) {
            addCriterion("model_number =", value, "modelNumber");
            return (Criteria) this;
        }

        public Criteria andModelNumberNotEqualTo(String value) {
            addCriterion("model_number <>", value, "modelNumber");
            return (Criteria) this;
        }

        public Criteria andModelNumberGreaterThan(String value) {
            addCriterion("model_number >", value, "modelNumber");
            return (Criteria) this;
        }

        public Criteria andModelNumberGreaterThanOrEqualTo(String value) {
            addCriterion("model_number >=", value, "modelNumber");
            return (Criteria) this;
        }

        public Criteria andModelNumberLessThan(String value) {
            addCriterion("model_number <", value, "modelNumber");
            return (Criteria) this;
        }

        public Criteria andModelNumberLessThanOrEqualTo(String value) {
            addCriterion("model_number <=", value, "modelNumber");
            return (Criteria) this;
        }

        public Criteria andModelNumberLike(String value) {
            addCriterion("model_number like", value, "modelNumber");
            return (Criteria) this;
        }

        public Criteria andModelNumberNotLike(String value) {
            addCriterion("model_number not like", value, "modelNumber");
            return (Criteria) this;
        }

        public Criteria andModelNumberIn(List<String> values) {
            addCriterion("model_number in", values, "modelNumber");
            return (Criteria) this;
        }

        public Criteria andModelNumberNotIn(List<String> values) {
            addCriterion("model_number not in", values, "modelNumber");
            return (Criteria) this;
        }

        public Criteria andModelNumberBetween(String value1, String value2) {
            addCriterion("model_number between", value1, value2, "modelNumber");
            return (Criteria) this;
        }

        public Criteria andModelNumberNotBetween(String value1, String value2) {
            addCriterion("model_number not between", value1, value2, "modelNumber");
            return (Criteria) this;
        }

        public Criteria andEquipmentManufacturerIsNull() {
            addCriterion("equipment_manufacturer is null");
            return (Criteria) this;
        }

        public Criteria andEquipmentManufacturerIsNotNull() {
            addCriterion("equipment_manufacturer is not null");
            return (Criteria) this;
        }

        public Criteria andEquipmentManufacturerEqualTo(String value) {
            addCriterion("equipment_manufacturer =", value, "equipmentManufacturer");
            return (Criteria) this;
        }

        public Criteria andEquipmentManufacturerNotEqualTo(String value) {
            addCriterion("equipment_manufacturer <>", value, "equipmentManufacturer");
            return (Criteria) this;
        }

        public Criteria andEquipmentManufacturerGreaterThan(String value) {
            addCriterion("equipment_manufacturer >", value, "equipmentManufacturer");
            return (Criteria) this;
        }

        public Criteria andEquipmentManufacturerGreaterThanOrEqualTo(String value) {
            addCriterion("equipment_manufacturer >=", value, "equipmentManufacturer");
            return (Criteria) this;
        }

        public Criteria andEquipmentManufacturerLessThan(String value) {
            addCriterion("equipment_manufacturer <", value, "equipmentManufacturer");
            return (Criteria) this;
        }

        public Criteria andEquipmentManufacturerLessThanOrEqualTo(String value) {
            addCriterion("equipment_manufacturer <=", value, "equipmentManufacturer");
            return (Criteria) this;
        }

        public Criteria andEquipmentManufacturerLike(String value) {
            addCriterion("equipment_manufacturer like", value, "equipmentManufacturer");
            return (Criteria) this;
        }

        public Criteria andEquipmentManufacturerNotLike(String value) {
            addCriterion("equipment_manufacturer not like", value, "equipmentManufacturer");
            return (Criteria) this;
        }

        public Criteria andEquipmentManufacturerIn(List<String> values) {
            addCriterion("equipment_manufacturer in", values, "equipmentManufacturer");
            return (Criteria) this;
        }

        public Criteria andEquipmentManufacturerNotIn(List<String> values) {
            addCriterion("equipment_manufacturer not in", values, "equipmentManufacturer");
            return (Criteria) this;
        }

        public Criteria andEquipmentManufacturerBetween(String value1, String value2) {
            addCriterion("equipment_manufacturer between", value1, value2, "equipmentManufacturer");
            return (Criteria) this;
        }

        public Criteria andEquipmentManufacturerNotBetween(String value1, String value2) {
            addCriterion("equipment_manufacturer not between", value1, value2, "equipmentManufacturer");
            return (Criteria) this;
        }

        public Criteria andUnitPriceIsNull() {
            addCriterion("unit_price is null");
            return (Criteria) this;
        }

        public Criteria andUnitPriceIsNotNull() {
            addCriterion("unit_price is not null");
            return (Criteria) this;
        }

        public Criteria andUnitPriceEqualTo(BigDecimal value) {
            addCriterion("unit_price =", value, "unitPrice");
            return (Criteria) this;
        }

        public Criteria andUnitPriceNotEqualTo(BigDecimal value) {
            addCriterion("unit_price <>", value, "unitPrice");
            return (Criteria) this;
        }

        public Criteria andUnitPriceGreaterThan(BigDecimal value) {
            addCriterion("unit_price >", value, "unitPrice");
            return (Criteria) this;
        }

        public Criteria andUnitPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("unit_price >=", value, "unitPrice");
            return (Criteria) this;
        }

        public Criteria andUnitPriceLessThan(BigDecimal value) {
            addCriterion("unit_price <", value, "unitPrice");
            return (Criteria) this;
        }

        public Criteria andUnitPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("unit_price <=", value, "unitPrice");
            return (Criteria) this;
        }

        public Criteria andUnitPriceIn(List<BigDecimal> values) {
            addCriterion("unit_price in", values, "unitPrice");
            return (Criteria) this;
        }

        public Criteria andUnitPriceNotIn(List<BigDecimal> values) {
            addCriterion("unit_price not in", values, "unitPrice");
            return (Criteria) this;
        }

        public Criteria andUnitPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("unit_price between", value1, value2, "unitPrice");
            return (Criteria) this;
        }

        public Criteria andUnitPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("unit_price not between", value1, value2, "unitPrice");
            return (Criteria) this;
        }

        public Criteria andBladeNumIsNull() {
            addCriterion("blade_num is null");
            return (Criteria) this;
        }

        public Criteria andBladeNumIsNotNull() {
            addCriterion("blade_num is not null");
            return (Criteria) this;
        }

        public Criteria andBladeNumEqualTo(String value) {
            addCriterion("blade_num =", value, "bladeNum");
            return (Criteria) this;
        }

        public Criteria andBladeNumNotEqualTo(String value) {
            addCriterion("blade_num <>", value, "bladeNum");
            return (Criteria) this;
        }

        public Criteria andBladeNumGreaterThan(String value) {
            addCriterion("blade_num >", value, "bladeNum");
            return (Criteria) this;
        }

        public Criteria andBladeNumGreaterThanOrEqualTo(String value) {
            addCriterion("blade_num >=", value, "bladeNum");
            return (Criteria) this;
        }

        public Criteria andBladeNumLessThan(String value) {
            addCriterion("blade_num <", value, "bladeNum");
            return (Criteria) this;
        }

        public Criteria andBladeNumLessThanOrEqualTo(String value) {
            addCriterion("blade_num <=", value, "bladeNum");
            return (Criteria) this;
        }

        public Criteria andBladeNumLike(String value) {
            addCriterion("blade_num like", value, "bladeNum");
            return (Criteria) this;
        }

        public Criteria andBladeNumNotLike(String value) {
            addCriterion("blade_num not like", value, "bladeNum");
            return (Criteria) this;
        }

        public Criteria andBladeNumIn(List<String> values) {
            addCriterion("blade_num in", values, "bladeNum");
            return (Criteria) this;
        }

        public Criteria andBladeNumNotIn(List<String> values) {
            addCriterion("blade_num not in", values, "bladeNum");
            return (Criteria) this;
        }

        public Criteria andBladeNumBetween(String value1, String value2) {
            addCriterion("blade_num between", value1, value2, "bladeNum");
            return (Criteria) this;
        }

        public Criteria andBladeNumNotBetween(String value1, String value2) {
            addCriterion("blade_num not between", value1, value2, "bladeNum");
            return (Criteria) this;
        }

        public Criteria andUnitIsNull() {
            addCriterion("unit is null");
            return (Criteria) this;
        }

        public Criteria andUnitIsNotNull() {
            addCriterion("unit is not null");
            return (Criteria) this;
        }

        public Criteria andUnitEqualTo(String value) {
            addCriterion("unit =", value, "unit");
            return (Criteria) this;
        }

        public Criteria andUnitNotEqualTo(String value) {
            addCriterion("unit <>", value, "unit");
            return (Criteria) this;
        }

        public Criteria andUnitGreaterThan(String value) {
            addCriterion("unit >", value, "unit");
            return (Criteria) this;
        }

        public Criteria andUnitGreaterThanOrEqualTo(String value) {
            addCriterion("unit >=", value, "unit");
            return (Criteria) this;
        }

        public Criteria andUnitLessThan(String value) {
            addCriterion("unit <", value, "unit");
            return (Criteria) this;
        }

        public Criteria andUnitLessThanOrEqualTo(String value) {
            addCriterion("unit <=", value, "unit");
            return (Criteria) this;
        }

        public Criteria andUnitLike(String value) {
            addCriterion("unit like", value, "unit");
            return (Criteria) this;
        }

        public Criteria andUnitNotLike(String value) {
            addCriterion("unit not like", value, "unit");
            return (Criteria) this;
        }

        public Criteria andUnitIn(List<String> values) {
            addCriterion("unit in", values, "unit");
            return (Criteria) this;
        }

        public Criteria andUnitNotIn(List<String> values) {
            addCriterion("unit not in", values, "unit");
            return (Criteria) this;
        }

        public Criteria andUnitBetween(String value1, String value2) {
            addCriterion("unit between", value1, value2, "unit");
            return (Criteria) this;
        }

        public Criteria andUnitNotBetween(String value1, String value2) {
            addCriterion("unit not between", value1, value2, "unit");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}